//
//  ZJZDTableViewCell.m
//  ShangHaiHuDongApp
//
//  Created by ZJ on 2017/7/3.
//  Copyright © 2017年 刘应平. All rights reserved.
//

#import "ZJZDTableViewCell.h"

@implementation ZJZDTableViewCell



- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.contentView.backgroundColor = [UIColor themeColor];
        [self.contentView addSubview:self.titleLabel];
    
        underLine = [UILabel new];
        underLine.backgroundColor = [UIColor whiteColor];
//        [self.contentView addSubview:underLine];
        
        self.titleLabel.sd_layout
        .topSpaceToView(self.contentView, 0)
        .leftSpaceToView(self.contentView, 10 * [UIScreen zj_screenWScale])
        .rightSpaceToView(self.contentView, 10 * [UIScreen zj_screenWScale])
        .bottomSpaceToView(self.contentView, 0);
        
        underLine.sd_layout
        .bottomSpaceToView(self.contentView, 0)
        .leftSpaceToView(self.contentView, 0)
        .rightSpaceToView(self.contentView, 0)
        .heightIs(1);
    }
    return self;
}



#pragma mark - Setter


#pragma mark - Getters
- (UILabel *)titleLabel{
    if (_titleLabel == nil){
        _titleLabel = [UILabel new];
        _titleLabel.textColor = [UIColor whiteColor];
        _titleLabel.font = [UIFont titleTextFont];
        _titleLabel.textAlignment = NSTextAlignmentLeft;
        }
    return _titleLabel;
}

@end
